<?php defined("MAIN_DIR") or die("No direct access"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Description" content="<?php
	echo isset($head_description) ? $head_description : "Банковский справочник ".$current_city['city_name_rod'];
?>">
<meta name="Keywords" content="<?php
	echo isset($head_keywords) ? $head_keywords : "банки ".mb_strtolower($current_city['city_name'],'utf-8');
?>">
<title><?php echo isset($head_title) ? $head_title : "Банки ".$current_city['city_name_rod']; ?></title>
<link href="/files/css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/files/js/jquery-1.5.min.js"></script>	
<script type="text/javascript">
var main = false;
$(document).ready(function(){
	$(".section").hover(function(){
		$(".hidden").hide();
		$(this).children(".hidden").fadeIn(100);
	},function(){
		$(this).children(".hidden").fadeOut(100);
	})
})
</script>	
</head>

<body>
<div align="center">
	<div id="main" align="left">
		<div id="logo"><a href="<?php echo "/$c_name/";?>"><img src="/files/images/logo.png" border="0" /></a>
			<div id="gorod">
				<a href="/"><?php echo $current_city['city_name']; ?></a> <span>(изменить)</span>
			</div>
		</div>
		<div id="banner_top"><?php
			$top_banner = $db->getCell("select `code` from `banners` where `position` = 'top' and `power` = 'on' and `before` > '".time()."' limit 1");
			echo $top_banner;
		?></div>
		<div style="clear:both"></div>
		<div id="menu">
			<div class="section">
				<div class="section_link"><a href="<?php echo "/$c_name";?>/banks/">Банки</a></div>
				<div class="list"><img src="/files/images/list.png" width="7" height="5" /></div>
				<div class="hidden">
					<div class="h_section_link"><a href="<?php echo "/$c_name";?>/banks/">Банки</a></div>
					<div class="subsection">
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/banks/rating">Рейтинг</a></div>
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/banks/">Список</a></div>
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/banks/vacancies">Вакансии</a></div>
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/mentions/">Отзывы клиентов</a></div>
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/polls/">Опросы</a></div>
					</div>
				</div>
			</div>
			<div class="section_empty">&nbsp;</div>
			<div class="section">
				<div class="section_link"><a href="<?php echo "/$c_name";?>/credits/">Кредиты</a></div>
				<div class="list"><img src="/files/images/list.png" width="7" height="5" /></div>
				<div class="hidden">
					<div class="h_section_link"><a href="<?php echo "/$c_name";?>/credits/">Кредиты</a></div>
					<div class="subsection">
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/credits/?type=home">Ипотека</a></div>
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/credits/?type=needs">На срочные нужды</a></div>
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/credits/?type=auto">На авто</a></div>
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/credits/?type=carts">Кредитные карты</a></div>
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/credits/?type=business">Бизнесу</a></div>
					</div>
				</div>
			</div>
			<div class="section_empty">&nbsp;</div>
			<div class="section">
				<div class="section_link"><a href="<?php echo "/$c_name";?>/deposits/">Вклады</a></div>
				<div class="list"><img src="/files/images/list.png" width="7" height="5" /></div>
				<div class="hidden">
					<div class="h_section_link"><a href="<?php echo "/$c_name";?>/deposits/">Вклады</a></div>
					<div class="subsection">
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/deposits?currency=rub">Рубли</a></div>
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/deposits?currency=usd">Доллары</a></div>
						<div class="subsection_link"><a href="<?php echo "/$c_name";?>/deposits?currency=euro">Евро</a></div>
					</div>
				</div>
			</div>
			<div class="section_empty">&nbsp;</div>
			<div class="section">
				<div class="just_link"><a href="<?php echo "/$c_name";?>/currency/">Курсы валют</a></div>
			</div>
			<div class="section_empty">&nbsp;</div>
			<div class="section">
				<div class="just_link"><a href="<?php echo "/$c_name";?>/banks/atms/">Банкоматы</a></div>
			</div>
		</div>
		<div style="clear:both"></div>